package com.lovejes.cuniao.domain.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the cn_paylog table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="cn_paylog"
 */

public abstract class BaseCnPaylog  implements Serializable {

	public static String REF = "CnPaylog";
	public static String PROP_STATUS = "Status";
	public static String PROP_BUSID = "Busid";
	public static String PROP_TOTALFEE = "Totalfee";
	public static String PROP_RETURNURL = "Returnurl";
	public static String PROP_SELLERMAIL = "Sellermail";
	public static String PROP_SUBJECT = "Subject";
	public static String PROP_DISCOUNT = "Discount";
	public static String PROP_NOTIFYURL = "Notifyurl";
	public static String PROP_USERID = "Userid";
	public static String PROP_BOBY = "Boby";
	public static String PROP_ID = "Id";


	// constructors
	public BaseCnPaylog () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseCnPaylog (java.lang.String id) {
		this.setId(id);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.String id;

	// fields
	private java.lang.String userid;
	private java.lang.String busid;
	private java.lang.String discount;
	private java.lang.String subject;
	private java.lang.String boby;
	private java.lang.String sellermail;
	private java.lang.String totalfee;
	private java.lang.String returnurl;
	private java.lang.String notifyurl;
	private java.lang.String status;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="uuid"
     *  column="ID"
     */
	public java.lang.String getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (java.lang.String id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: USERID
	 */
	public java.lang.String getUserid () {
		return userid;
	}

	/**
	 * Set the value related to the column: USERID
	 * @param userid the USERID value
	 */
	public void setUserid (java.lang.String userid) {
		this.userid = userid;
	}



	/**
	 * Return the value associated with the column: BUSID
	 */
	public java.lang.String getBusid () {
		return busid;
	}

	/**
	 * Set the value related to the column: BUSID
	 * @param busid the BUSID value
	 */
	public void setBusid (java.lang.String busid) {
		this.busid = busid;
	}



	/**
	 * Return the value associated with the column: DISCOUNT
	 */
	public java.lang.String getDiscount () {
		return discount;
	}

	/**
	 * Set the value related to the column: DISCOUNT
	 * @param discount the DISCOUNT value
	 */
	public void setDiscount (java.lang.String discount) {
		this.discount = discount;
	}



	/**
	 * Return the value associated with the column: SUBJECT
	 */
	public java.lang.String getSubject () {
		return subject;
	}

	/**
	 * Set the value related to the column: SUBJECT
	 * @param subject the SUBJECT value
	 */
	public void setSubject (java.lang.String subject) {
		this.subject = subject;
	}



	/**
	 * Return the value associated with the column: BOBY
	 */
	public java.lang.String getBoby () {
		return boby;
	}

	/**
	 * Set the value related to the column: BOBY
	 * @param boby the BOBY value
	 */
	public void setBoby (java.lang.String boby) {
		this.boby = boby;
	}



	/**
	 * Return the value associated with the column: SELLERMAIL
	 */
	public java.lang.String getSellermail () {
		return sellermail;
	}

	/**
	 * Set the value related to the column: SELLERMAIL
	 * @param sellermail the SELLERMAIL value
	 */
	public void setSellermail (java.lang.String sellermail) {
		this.sellermail = sellermail;
	}



	/**
	 * Return the value associated with the column: TOTALFEE
	 */
	public java.lang.String getTotalfee () {
		return totalfee;
	}

	/**
	 * Set the value related to the column: TOTALFEE
	 * @param totalfee the TOTALFEE value
	 */
	public void setTotalfee (java.lang.String totalfee) {
		this.totalfee = totalfee;
	}



	/**
	 * Return the value associated with the column: RETURNURL
	 */
	public java.lang.String getReturnurl () {
		return returnurl;
	}

	/**
	 * Set the value related to the column: RETURNURL
	 * @param returnurl the RETURNURL value
	 */
	public void setReturnurl (java.lang.String returnurl) {
		this.returnurl = returnurl;
	}



	/**
	 * Return the value associated with the column: NOTIFYURL
	 */
	public java.lang.String getNotifyurl () {
		return notifyurl;
	}

	/**
	 * Set the value related to the column: NOTIFYURL
	 * @param notifyurl the NOTIFYURL value
	 */
	public void setNotifyurl (java.lang.String notifyurl) {
		this.notifyurl = notifyurl;
	}



	/**
	 * Return the value associated with the column: STATUS
	 */
	public java.lang.String getStatus () {
		return status;
	}

	/**
	 * Set the value related to the column: STATUS
	 * @param status the STATUS value
	 */
	public void setStatus (java.lang.String status) {
		this.status = status;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.lovejes.cuniao.domain.CnPaylog)) return false;
		else {
			com.lovejes.cuniao.domain.CnPaylog cnPaylog = (com.lovejes.cuniao.domain.CnPaylog) obj;
			if (null == this.getId() || null == cnPaylog.getId()) return false;
			else return (this.getId().equals(cnPaylog.getId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}